<?php if (!defined('THINK_PATH')) exit(); /*a:9:{s:60:"D:\dev\project\skycaiji/SkycaijiApp/admin\view\task\add.html";i:1665552311;s:63:"D:\dev\project\skycaiji\SkycaijiApp\admin\view\common\main.html";i:1665552311;s:72:"D:\dev\project\skycaiji\SkycaijiApp\admin\view\common\header_public.html";i:1665552311;s:65:"D:\dev\project\skycaiji\SkycaijiApp\admin\view\task\add_form.html";i:1665552311;s:65:"D:\dev\project\skycaiji\SkycaijiApp\admin\view\task\stepsbar.html";i:1665552311;s:65:"D:\dev\project\skycaiji\SkycaijiApp\admin\view\common\footer.html";i:1665552311;s:72:"D:\dev\project\skycaiji\SkycaijiApp\admin\view\common\footer_public.html";i:1665552311;s:74:"D:\dev\project\skycaiji\SkycaijiApp\common\view\common\browser_is_old.html";i:1665552311;s:75:"D:\dev\project\skycaiji\SkycaijiApp\common\view\common\page_translator.html";i:1665552311;}*/ ?>
<!DOCTYPE html>
<html>
<head>
  <meta charset="utf-8">
  <meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1" />
  <meta content="width=device-width, initial-scale=1, maximum-scale=1, user-scalable=no" name="viewport">
  <title><?php echo g_sc('p_title')?(g_sc('p_title').' - '):''; ?>蓝天采集器后台管理</title>
  <meta name="generator" content="skycaiji" />
  <link rel="icon" href="">
  <!-- Bootstrap 3.3.7 -->
  <link rel="stylesheet" href="/public/bootstrap/css/bootstrap.min.css?<?php echo \think\Config::get('html_v'); ?>">
  <!-- Font Awesome -->
  <link rel="stylesheet" href="/public/addon/font-awesome/css/font-awesome.min.css?<?php echo \think\Config::get('html_v'); ?>">
  <!-- Ionicons -->
  <link rel="stylesheet" href="/public/addon/Ionicons/css/ionicons.min.css?<?php echo \think\Config::get('html_v'); ?>">
  <!-- Theme style -->
  <link rel="stylesheet" href="/public/adminlte/dist/css/AdminLTE.min.css?<?php echo \think\Config::get('html_v'); ?>">
  <link rel="stylesheet" href="/public/adminlte/dist/css/skins/_all-skins.min.css?<?php echo \think\Config::get('html_v'); ?>">

  <!-- HTML5 Shim and Respond.js IE8 support of HTML5 elements and media queries -->
  <!-- WARNING: Respond.js doesn't work if you view the page via file:// -->
  <!--[if lt IE 9]>
  <script src="/public/addon/adminlte/html5shiv.min.js?<?php echo \think\Config::get('html_v'); ?>"></script>
  <script src="/public/addon/adminlte/respond.min.js?<?php echo \think\Config::get('html_v'); ?>"></script>
  <![endif]-->

  <!-- Google Font -->
  <!-- <link rel="stylesheet" href="/public/addon/adminlte/google-font.css?<?php echo \think\Config::get('html_v'); ?>"> -->
  
  <!-- jQuery -->
  <script src="/public/jquery/jquery.min.js?<?php echo \think\Config::get('html_v'); ?>"></script>
  <!-- else -->
  <script type="text/javascript" src="/public/static/js/base64.min.js?<?php echo \think\Config::get('html_v'); ?>"></script>
  <link href="/public/static/css/toastr.css?<?php echo \think\Config::get('html_v'); ?>" rel="stylesheet" type="text/css">
  <script src="/public/static/js/toastr.js?<?php echo \think\Config::get('html_v'); ?>"></script>
  <!-- jQuery UI 1.11.4 -->
  <script src="/public/addon/adminlte/jquery-ui.min.js?<?php echo \think\Config::get('html_v'); ?>"></script>
  <!-- Bootstrap 3.3.7 -->
  <script src="/public/bootstrap/js/bootstrap.min.js?<?php echo \think\Config::get('html_v'); ?>"></script>
  <!-- FastClick -->
  <script src="/public/addon/adminlte/fastclick.js?<?php echo \think\Config::get('html_v'); ?>"></script>
  <!-- AdminLTE App -->
  <script src="/public/adminlte/dist/js/adminlte.min.js?<?php echo \think\Config::get('html_v'); ?>"></script>
  <!-- custom -->
  <script src="/public/static/js/common.js?<?php echo \think\Config::get('html_v'); ?>"></script>
  <script src="/public/static/js/admin.js?<?php echo \think\Config::get('html_v'); ?>"></script>
  <link href="/public/static/css/admin.css?<?php echo \think\Config::get('html_v'); ?>" rel="stylesheet" type="text/css">
  <script type="text/javascript" src="/public/static/js/langs/<?php echo defined('LANG_SET')?LANG_SET:config('DEFAULT_LANG'); ?>.js?<?php echo \think\Config::get('html_v'); ?>"></script>
  <script type="text/javascript">var site_config={root:"",pub:"/public",usertoken:"<?php echo g_sc('usertoken'); ?>",clientinfo:"<?php echo g_sc('clientinfo'); ?>"};</script>



</head>
<body class="skin-blue" data-spy="scroll" data-target="#scrollspy">
<script type="text/javascript">admincpInit();</script>
<div class="wrapper">
<header class="main-header">
  	<a href="<?php echo url('Admin/Backstage/index'); ?>" class="logo">
    	蓝天采集器
  	</a>
  	<nav class="navbar navbar-static-top" role="navigation">
		<a href="#" class="sidebar-toggle" data-toggle="push-menu" role="button">
	    	<span class="sr-only"> </span>
	    	<span class="icon-bar"></span>
	    	<span class="icon-bar"></span>
	    	<span class="icon-bar"></span>
	    </a>
		<div class="navbar-custom-menu">
		<ul class="nav navbar-nav">
			<li class="dropdown tasks-menu">
				<a href="javascript:;" id="menu_backstage_task">
            		<i class="fa fa-flag-o"></i>
            		<span class="label label-warning"></span>
            	</a>
			</li>
			<li class="dropdown user user-menu">
        		<a href="#" class="dropdown-toggle" data-toggle="dropdown">
            		<span class="glyphicon glyphicon-user"></span>
              		<span><?php echo g_sc('user','username'); ?></span>
            	</a>
            	<ul class="dropdown-menu">
            		<li><a href="<?php echo url('User/edit?uid='.g_sc('user','uid')); ?>"><?php echo \think\Lang::get('user_edit'); ?></a></li>
				  	<li><a href="<?php echo url('Admin/Index/logout'); ?>"><?php echo \think\Lang::get('logout'); ?></a></li>
          		</ul>
			</li>
		</ul>
		</div>
	</nav>
</header>
<?php $curMenu=array(strtolower(request()->controller())=>' menu-open cur-menu'); $curSubm=array(strtolower(request()->action())=>' menu-open cur-menu'); ?>
<aside class="main-sidebar">
<section class="sidebar">
<ul class="sidebar-menu" data-widget="tree">
	<li class="treeview<?php echo $curMenu['setting']; ?>">
		<a href="#">
			<i class="fa fa-cog"></i> <span><?php echo \think\Lang::get('setting'); ?></span>
			<span class="pull-right-container">
				<i class="fa fa-angle-left pull-right"></i>
			</span>
		</a>
		<ul class="treeview-menu">
			<li><a href="<?php echo url('Admin/Setting/caiji'); ?>"><i class="fa fa-circle-o"></i> <?php echo \think\Lang::get('setting_caiji'); ?></a></li>
			<li><a href="<?php echo url('Admin/Setting/site'); ?>"><i class="fa fa-circle-o"></i> <?php echo \think\Lang::get('setting_site'); ?></a></li>
			<li><a href="<?php echo url('Admin/Setting/store'); ?>"><i class="fa fa-circle-o"></i> <?php echo \think\Lang::get('setting_store'); ?></a></li>
			<li><a href="<?php echo url('Admin/Setting/email'); ?>"><i class="fa fa-circle-o"></i> <?php echo \think\Lang::get('setting_email'); ?></a></li>
		</ul>
	</li>
   	<li class="treeview<?php echo $curMenu['task']; ?><?php echo $curMenu['taskgroup']; ?><?php echo $curMenu['collector']; ?><?php echo $curMenu['release']; ?>">
       	<a href="#">
       		<i class="fa fa-tasks"></i> <span><?php echo \think\Lang::get('task'); ?></span>
      		<span class="pull-right-container">
       			<i class="fa fa-angle-left pull-right"></i>
      		</span>
       	</a>
		<ul class="treeview-menu">
			<li><a href="<?php echo url('Admin/Task/list'); ?>"><i class="fa fa-circle-o"></i> <?php echo \think\Lang::get('task_list'); ?></a></li>
			<li><a href="<?php echo url('Admin/Task/add'); ?>"><i class="fa fa-circle-o"></i> <?php echo \think\Lang::get('task_add'); ?></a></li>
			<li class="treeview<?php echo $curMenu['taskgroup']; ?>">
				<a href="#"><i class="fa fa-circle-o"></i> <?php echo \think\Lang::get('taskgroup'); ?>
				<span class="pull-right-container">
				<i class="fa fa-angle-left pull-right"></i>
				</span>
				</a>
				<ul class="treeview-menu">
					<li><a href="<?php echo url('Taskgroup/list'); ?>"><i class="fa fa-circle-o"></i> <?php echo \think\Lang::get('taskgroup_list'); ?></a></li>
					<li><a href="<?php echo url('Taskgroup/add'); ?>"><i class="fa fa-circle-o"></i> <?php echo \think\Lang::get('taskgroup_add'); ?></a></li>
				</ul>
			</li>
		</ul>
    </li>
	<li class="treeview<?php echo $curMenu['store']; ?><?php echo $curMenu['mystore']; ?><?php echo $curMenu['provider']; ?>">
		<a href="#">
			<i class="fa fa-cloud"></i> <span>云端</span>
			<span class="pull-right-container">
				<i class="fa fa-angle-left pull-right"></i>
			</span>
		</a>
		<ul class="treeview-menu">
			<li><a href="<?php echo url('Admin/Mystore/store'); ?>" target="_blank"><i class="fa fa-circle-o"></i> 云平台</a></li>
			<li><a href="<?php echo url('Admin/Provider/list'); ?>"><i class="fa fa-circle-o"></i> 第三方</a></li>
			<li class="treeview menu-open">
				<a href="#"><i class="fa fa-circle-o"></i> 已下载
				<span class="pull-right-container">
					<i class="fa fa-angle-left pull-right"></i>
				</span>
				</a>
				<ul class="treeview-menu" style="display:block;">
					<li><a href="<?php echo url('Admin/Mystore/rule'); ?>"><i class="fa fa-circle-o"></i> 采集规则</a></li>
					<li><a href="<?php echo url('Admin/Mystore/releaseApp'); ?>"><i class="fa fa-circle-o"></i> 发布插件</a></li>
					<li><a href="<?php echo url('Admin/Mystore/funcApp'); ?>"><i class="fa fa-circle-o"></i> 函数插件</a></li>
					<li><a href="<?php echo url('Admin/Mystore/app'); ?>"><i class="fa fa-circle-o"></i> 应用程序</a></li>
				</ul>
			</li>
		</ul>
	</li>
	<li class="treeview<?php echo $curMenu['collected']; ?>">
		<a href="#">
			<i class="fa fa-database"></i> <span><?php echo \think\Lang::get('collected'); ?></span>
			<span class="pull-right-container">
				<i class="fa fa-angle-left pull-right"></i>
			</span>
		</a>
		<ul class="treeview-menu">
			<li><a href="<?php echo url('Admin/Collected/list'); ?>"><i class="fa fa-circle-o"></i> 数据列表</a></li>
			<li><a href="<?php echo url('Admin/Collected/chart'); ?>"><i class="fa fa-circle-o"></i> 统计图表</a></li>
		</ul>
	</li>
	<li class="treeview<?php echo $curMenu['user']; ?>">
		<a href="#">
			<i class="fa fa-user"></i> <span><?php echo \think\Lang::get('user'); ?></span>
			<span class="pull-right-container">
				<i class="fa fa-angle-left pull-right"></i>
			</span>
		</a>
		<ul class="treeview-menu">
			<li><a href="<?php echo url('Admin/User/list'); ?>"><i class="fa fa-circle-o"></i> <?php echo \think\Lang::get('user_list'); ?></a></li>
		</ul>
	</li>
	<li class="treeview<?php echo $curMenu['develop']; ?><?php echo $curMenu['tool']; ?>">
		<a href="#">
			<i class="fa fa-wrench"></i> <span>工具&amp;开发</span>
			<span class="pull-right-container">
				<i class="fa fa-angle-left pull-right"></i>
			</span>
		</a>
		<ul class="treeview-menu">
			<li class="treeview<?php echo $curMenu['develop']; ?>">
				<a href="#"><i class="fa fa-circle-o"></i> 开发
				<span class="pull-right-container">
					<i class="fa fa-angle-left pull-right"></i>
				</span>
				</a>
				<ul class="treeview-menu">
					<li><a href="<?php echo url('Admin/Develop/releaseCms'); ?>"><i class="fa fa-circle-o"></i> CMS发布插件</a></li>
					<li><a href="<?php echo url('Admin/Develop/func'); ?>"><i class="fa fa-circle-o"></i> 函数插件</a></li>
					<li><a href="<?php echo url('Admin/Develop/app'); ?>"><i class="fa fa-circle-o"></i> 应用程序</a></li>
				</ul>
			</li>
			<li><a href="<?php echo url('Admin/Tool/fileManager'); ?>"><i class="fa fa-circle-o"></i> 文件管理</a></li>
			<li><a href="<?php echo url('Admin/Tool/json_tree'); ?>"><i class="fa fa-circle-o"></i> JSON解析</a></li>
			<li><a href="<?php echo url('Admin/Tool/logs'); ?>"><i class="fa fa-circle-o"></i> 错误日志</a></li>
			<li class="treeview<?php echo $curSubm['checkfile']; ?><?php echo $curSubm['checkdb']; ?>">
				<a href="#"><i class="fa fa-circle-o"></i> 校验
				<span class="pull-right-container">
					<i class="fa fa-angle-left pull-right"></i>
				</span>
				</a>
				<ul class="treeview-menu">
					<li><a href="<?php echo url('Admin/Tool/checkfile'); ?>"><i class="fa fa-circle-o"></i> 文件</a></li>
					<li><a href="<?php echo url('Admin/Tool/checkdb'); ?>"><i class="fa fa-circle-o"></i> 数据库</a></li>
				</ul>
			</li>
			
			<li class="treeview">
				<a href="#" id="treeview_skins"><i class="fa fa-circle-o"></i> <?php echo \think\Lang::get('admincp_style'); ?>
				<span class="pull-right-container">
					<i class="fa fa-angle-left pull-right"></i>
				</span>
				</a>
				<ul class="treeview-menu treeview-skins" style="display:none;">
					<li>
						<div class="checkbox"><label><input id="chk_sidebar_mini" type="checkbox"> <?php echo \think\Lang::get('admincp_sidebar_mini'); ?></label></div>
					</li>
					<li>
						<div id="sidebar_skins"></div>
					</li>
				</ul>
			</li>
		</ul>
	</li>
</ul>
</section>
</aside>
<div class="content-wrapper">
	<section class="content-header">
	<h1><?php echo g_sc('p_name'); ?></h1>
	<ol class="breadcrumb">
		<li><a href="<?php echo url('Admin/Backstage/index'); ?>"><i class="fa fa-dashboard"></i> <?php echo \think\Lang::get('admincp'); ?></a></li>
		<?php echo g_sc('p_nav'); ?>
	</ol>
	</section>
	<section class="content">
	
	<form id="form_item" method="post" ajax-submit="true" enctype="multipart/form-data" action="<?php echo url('Task/'.($taskData?'edit':'add')); ?>">
<?php echo html_usertoken(); ?>
<div class="box box-default">
<div class="box-body">	
	<?php if($taskData): ?>
	<input type="hidden" name="id" value="<?php echo $taskData['id']; ?>" />
	<?php endif; ?>
	<input type="hidden" name="task_id" value="" />
	<input type="hidden" name="rule_id" value="" />
    <div class="form-group">
        <label><?php echo \think\Lang::get('task_name'); ?></label>
		<?php if($taskData): ?>
        <input name="name" class="form-control" value="<?php echo $taskData['name']; ?>">
        <?php else: ?>
		<div class="input-group">
        	<input name="name" class="form-control" value="">
        	<div class="input-group-btn"><button class="btn btn-default" onclick="windowModal('复制一个任务的所有设置','<?php echo url("Task/list?show=import"); ?>');" type="button" id="btn_import_task">导入任务</button></div>
   		</div>
        <?php endif; ?>
    </div>
    <div class="form-group">
        <label><?php echo \think\Lang::get('task_tg'); ?></label>
        <?php echo $tgSelect; ?>
    </div>
    <div class="form-group">
        <label><?php echo \think\Lang::get('task_module'); ?></label>
        <div class="input-group" style="width:100%;">
	        <select name="module" class="form-control">
	        	<?php if(is_array(\think\Config::get('allow_coll_modules')) || \think\Config::get('allow_coll_modules') instanceof \think\Collection || \think\Config::get('allow_coll_modules') instanceof \think\Paginator): if( count(\think\Config::get('allow_coll_modules'))==0 ) : echo "" ;else: foreach(\think\Config::get('allow_coll_modules') as $key=>$cmodule): ?>
	           	<option value="<?php echo $cmodule; ?>"><?php echo lang('task_module_'.$cmodule); ?></option>
	        	<?php endforeach; endif; else: echo "" ;endif; ?>
	        </select>
	        <div class="input-group-btn dropdown">
			  <button class="btn btn-default dropdown-toggle" type="button" id="btn_import_rule" data-toggle="dropdown" aria-haspopup="true" aria-expanded="false">
			   	导入规则
			  	<span class="caret"></span>
			  </button>
			  <ul class="dropdown-menu dropdown-menu-right dropdown-import-rule" aria-labelledby="btn_import_rule">
			  	<li><a href="javascript:;" onclick="windowModal('导入规则会覆盖该任务的规则设置，且不可恢复','<?php echo url("Mystore/rule?tpl=task&type=collect"); ?>');">已下载规则</a></li>
			  	<li><a href="javascript:;" onclick="windowModal('导入规则会覆盖该任务的规则设置，且不可恢复','<?php echo url("Collector/list?module=pattern&tpl=task"); ?>');">其它任务的规则</a></li>
			  	<li role="separator" class="divider"></li>
			  	<li style="padding-left:20px;padding-bottom:5px;"><input type="file" name="rule_file" /></li>
			  </ul>
			</div>
		</div>
    </div>
    <div class="form-group">
        <label><?php echo \think\Lang::get('task_auto'); ?></label>
        <div class="input-group">
        	<label class="radio-inline"><input type="radio" name="auto" value="1"><?php echo \think\Lang::get('yes'); ?></label>
        	<label class="radio-inline"><input type="radio" name="auto" value="0" checked="checked"><?php echo \think\Lang::get('no'); ?></label>
        </div>
    </div>
   	<div class="form-group" style="margin-bottom:0;">
       	<label><?php echo \think\Lang::get('task_sort'); ?></label>
		<input type="number" class="form-control" name="sort" autocomplete="off" value="<?php echo !empty($taskData)?intval($taskData['sort']):0; ?>" />
		<p class="help-block"><?php echo \think\Lang::get('task_sort_help'); ?></p>
	</div>
</div>
</div>

<div class="panel panel-default">
	<div class="panel-heading">
		<h4 class="panel-title">
			<a data-toggle="collapse" href="#task_config" aria-expanded="false">更多设置</a>
    	</h4>
   	</div>
    <div id="task_config" class="panel-collapse collapse">
		<div class="panel-body">
		    <p class="help-block">以下选项受<a href="<?php echo url('Setting/caiji'); ?>" target="_blank">采集设置</a>影响</p>
		    <div class="form-group">
		        <label>每次采集数量</label>
		        <input type="number" name="config[num]" class="form-control" placeholder="全局设置：<?php echo $gConfig['num']; ?>" />
		        <p class="help-block">该任务每次采集的数据量，不能超过采集设置中的“每次采集数量”，留空或0使用全局设置</p>
		    </div>
		    <div class="form-group">
		        <label>采集运行间隔（分钟）</label>
		        <input type="number" name="config[interval]" class="form-control" placeholder="全局设置：<?php echo $gConfig['interval']; ?>" />
		        <p class="help-block">留空或0使用全局设置，输入-1表示无间隔</p>
		    </div>
		    <div class="form-group">
		        <label>页面抓取间隔（毫秒，1000毫秒=1秒）</label>
		        <input type="number" name="config[interval_html]" class="form-control" placeholder="全局设置：<?php echo $gConfig['interval_html']; ?>" />
		        <p class="help-block">留空或0使用全局设置，输入-1表示无间隔</p>
		    </div>
		    <div class="form-group">
		        <label>实时发布数据</label>
		        <div class="input-group">
			        <label class="radio-inline"><input type="radio" name="config[real_time]" value="" checked="checked">
						全局设置：<?php echo $gConfig['real_time']; ?>
					</label>
			        <label class="radio-inline"><input type="radio" name="config[real_time]" value="y">是</label>
					<label class="radio-inline"><input type="radio" name="config[real_time]" value="n">否</label>
		        </div>
		    </div>
		    <div class="form-group">
		        <label>使用代理</label>
		        <div class="input-group">
			        <label class="radio-inline"><input type="radio" name="config[proxy]" value="" checked="checked">
			        	全局设置：<?php echo $gConfig['proxy']; ?>
			        </label>
			        <label class="radio-inline"><input type="radio" name="config[proxy]" value="y">是</label>
					<label class="radio-inline"><input type="radio" name="config[proxy]" value="n">否</label>
		        </div>
		    </div>
		</div>
    	<div class="panel-body" id="config_download_img" style="border-top:solid 1px #ddd;">
		    <div class="form-group">
		        <label>图片本地化</label>
		        <div class="input-group">
			        <label class="radio-inline"><input type="radio" name="config[download_img]" value="" data-global="<?php echo $gConfig['download_img']; ?>" checked="checked">
			        	全局设置：<?php echo !empty($gConfig['download_img'])?'是':'否'; ?>
			        </label>
			        <label class="radio-inline"><input type="radio" name="config[download_img]" value="y">是</label>
					<label class="radio-inline"><input type="radio" name="config[download_img]" value="n">否</label>
		        </div>
		    </div>
		    <div class="form-group">
		        <label>图片下载间隔（毫秒，1000毫秒=1秒）</label>
		        <input type="number" name="config[interval_img]" class="form-control" placeholder="全局设置：<?php echo $gConfig['interval_img']; ?>" />
		        <p class="help-block">留空或0使用全局设置，输入-1表示无间隔</p>
		    </div>
			<div class="form-group">
	        	<label>图片保存目录（绝对路径）</label>
		        <input type="text" name="config[img_path]" class="form-control" placeholder="全局设置：<?php echo $gConfig['img_path']; ?>">
		    </div>
		    <div class="form-group">
	        	<label>图片链接地址（绝对地址）</label>
		        <input type="text" name="config[img_url]" class="form-control" placeholder="全局设置：<?php echo $gConfig['img_url']; ?>">
		    </div>
		    <div class="form-group">
	        	<label>图片名称</label>
		       	<select name="config[img_name]" class="form-control">
		       		<option value="">全局设置：<?php echo lang('down_img_name_'.$gConfig['img_name']); ?></option>
		       		<option value="time"><?php echo \think\Lang::get('down_img_name_time'); ?></option>
		       		<option value="url"><?php echo \think\Lang::get('down_img_name_url'); ?></option>
		       		<option value="custom"><?php echo \think\Lang::get('down_img_name_custom'); ?></option>
		       	</select>
		       	<div id="config_img_name_custom" style="display:none;">
		       		<p class="help-block" style="margin-bottom:5px;font-size:12px;">注意：字段值的长度限制100字内（超出自动截取），字段值中任何特殊字符都会被替换成下划线，自定义路径或名称太长都可能导致图片保存失败</p>
	       			<div style="width:100%;">
	       				<div style="width:50%;float:left">
		       				<div class="input-group">
		       					<input type="text" name="config[name_custom_path]" class="form-control" placeholder="路径，全局设置：<?php echo $gConfig['name_custom_path']; ?>" autocomplete="off" />
		       					<div class="input-group-addon" style="border-left:0;border-right:0;font-weight:bold;">/</div>
		       				</div>
		       				<div class="help-block name-custom-path">
		       					<div class="dropup" style="display:inline;">
									<a class="dropdown-toggle" type="button" data-toggle="dropdown" aria-haspopup="true" aria-expanded="false">
										系统
										<span class="caret"></span>
									</a>
									<ul class="dropdown-menu">
										<li><a href="javascript:;" data-val="[年]">[年]</a></li>
										<li><a href="javascript:;" data-val="[月]">[月]</a></li>
										<li><a href="javascript:;" data-val="[日]">[日]</a></li>
										<li><a href="javascript:;" data-val="[时]">[时]</a></li>
										<li><a href="javascript:;" data-val="[分]">[分]</a></li>
										<li><a href="javascript:;" data-val="[秒]">[秒]</a></li>
										<li><a href="javascript:;" data-val="[前两位]" title="图片网址MD5码的前两位">[前两位]</a></li>
										<li><a href="javascript:;" data-val="[后两位]" title="图片网址MD5码的后两位">[后两位]</a></li>
										<li><a href="javascript:;" data-val="[任务名]">[任务名]</a></li>
										<li><a href="javascript:;" data-val="[任务ID]">[任务ID]</a></li>
									</ul>
								</div>&nbsp;
				       			<div class="dropup" style="display:inline;">
									<a class="dropdown-toggle" type="button" data-toggle="dropdown" aria-haspopup="true" aria-expanded="false">
										采集器字段
										<span class="caret"></span>
									</a>
									<ul class="dropdown-menu name-custom-path-fields">
										<li><a href="javascript:;">没有字段，请先配置规则设置！</a></li>
									</ul>
								</div>&nbsp;
				       			用/分隔子目录
				       		</div>
	       				</div>
	       				<div style="width:50%;float:left">
		       				<input type="text" name="config[name_custom_name]" class="form-control" placeholder="名称，全局设置：<?php echo $gConfig['name_custom_name']; ?>" autocomplete="off" />
	       					<div class="help-block name-custom-name">
		       					<div class="dropup" style="display:inline;">
									<a class="dropdown-toggle" type="button" data-toggle="dropdown" aria-haspopup="true" aria-expanded="false">
										系统
										<span class="caret"></span>
									</a>
									<ul class="dropdown-menu">
										<li><a href="javascript:;" data-val="[图片网址MD5码]">[图片网址MD5码]</a></li>
										<li><a href="javascript:;" data-val="[图片原名]">[图片原名]</a></li>
										<li><a href="javascript:;" data-val="[年]">[年]</a></li>
										<li><a href="javascript:;" data-val="[月]">[月]</a></li>
										<li><a href="javascript:;" data-val="[日]">[日]</a></li>
										<li><a href="javascript:;" data-val="[时]">[时]</a></li>
										<li><a href="javascript:;" data-val="[分]">[分]</a></li>
										<li><a href="javascript:;" data-val="[秒]">[秒]</a></li>
										<li><a href="javascript:;" data-val="[前两位]" title="图片网址MD5码的前两位">[前两位]</a></li>
										<li><a href="javascript:;" data-val="[后两位]" title="图片网址MD5码的后两位">[后两位]</a></li>
										<li><a href="javascript:;" data-val="[任务名]">[任务名]</a></li>
										<li><a href="javascript:;" data-val="[任务ID]">[任务ID]</a></li>
									</ul>
								</div>&nbsp;
				       			<div class="dropup" style="display:inline;">
									<a class="dropdown-toggle" type="button" data-toggle="dropdown" aria-haspopup="true" aria-expanded="false">
										采集器字段
										<span class="caret"></span>
									</a>
									<ul class="dropdown-menu name-custom-name-fields">
										<li><a href="javascript:;">没有字段，请先配置规则设置！</a></li>
									</ul>
								</div>
				       		</div>
	       				</div>
		       		</div>
					<div style="clear:both;height:0;">&nbsp;</div>
		       	</div>
			</div>
	        <div class="form-group">
	        	<label>使用函数</label>
		   		<select name="config[img_func]" class="form-control" data-global="<?php echo $gConfig['img_func']; ?>">
		   			<option value="">全局设置：<?php echo !empty($gConfig['img_func'])?$gConfig['img_func']:'不使用'; ?></option>
		   			<option value="n">不使用</option>
		       	</select>
			</div>
			<div id="config_img_func" style="display:none;">
				<div class="form-group">
					<label>传入参数</label>
					<textarea name="config[img_func_param]" rows="2" class="form-control" data-placeholder="<?php echo !empty($gConfig['img_func_param'])?('全局设置：'.$gConfig['img_func_param']):'默认传入[图片:文件名]'; ?>"></textarea>
					<div class="help-block">
						一行一个值，可输入任何内容或
						<div class="dropup dropup-img-params" style="display:inline;">
							<a class="dropdown-toggle" type="button" data-toggle="dropdown" aria-haspopup="true" aria-expanded="false">
								调用图片参数
								<span class="caret"></span>
							</a>
							<ul class="dropdown-menu">
								<li><a href="javascript:;" data-val="[图片:文件名]">[图片:文件名]（包含路径和名称）</a></li>
								<li><a href="javascript:;" data-val="[图片:路径]">[图片:路径]（保存的目录）</a></li>
								<li><a href="javascript:;" data-val="[图片:名称]">[图片:名称]（保存的名称）</a></li>
								<li><a href="javascript:;" data-val="[图片:链接]">[图片:链接]（下载后的链接）</a></li>
								<li><a href="javascript:;" data-val="[图片:网址]">[图片:网址]（图片源网址）</a></li>
							</ul>
						</div>
						&nbsp;请按函数传参，否则运行出错！<a href="javascript:;" onclick="pluginFuncTips('downloadImg')">扩展函数</a>
					</div>
				</div>
			</div>
    	</div>
    </div>
</div>
<div class="form-group">
	<button type="submit" class="btn btn-primary btn-block"><?php echo \think\Lang::get('save'); ?></button>
</div>
</form>
<?php $nTaskData=is_array($taskData)?json_encode($taskData):'null';$nFieldList=is_array($fieldList)?json_encode($fieldList):'null'; ?>
<script src="/public/static/js/admin/task.js?<?php echo \think\Config::get('html_v'); ?>"></script>
<script type="text/javascript">
task_load(<?php echo $nTaskData; ?>,<?php echo $nFieldList; ?>);
</script>
	<?php $tplTaskId=$taskData?$taskData['id']:'';$tplCurCtl=array(request()->controller()=>' current'); ?>
<div class="steps-bar">
	<div class="step current">
		<div class="each">
			<a href="<?php echo url('Task/edit?id='.$tplTaskId); ?>" class="round">1</a>
		</div>
		<div class="info"><a href="<?php echo url('Task/edit?id='.$tplTaskId); ?>"><?php echo \think\Lang::get('task_set_task'); ?></a></div>
	</div>
	<div class="step<?php echo $tplCurCtl['Collector']; ?><?php echo $tplCurCtl['Release']; ?>">
		<div class="each">
			<a href="<?php echo url('Collector/set?task_id='.$tplTaskId); ?>" class="round">2</a>
			<div class="bar"></div>
		</div>
		<div class="info"><a href="<?php echo url('Collector/set?task_id='.$tplTaskId); ?>"><?php echo \think\Lang::get('task_set_collector'); ?></a></div>
	</div>
	<div class="step<?php echo $tplCurCtl['Release']; ?>">
		<div class="each">
			<a href="<?php echo url('Release/set?task_id='.$tplTaskId); ?>" class="round">3</a>
			<div class="bar"></div>
		</div>
		<div class="info"><a href="<?php echo url('Release/set?task_id='.$tplTaskId); ?>"><?php echo \think\Lang::get('task_set_release'); ?></a></div>
	</div>
</div>

	</section>
</div>
	<div class="control-sidebar-bg"></div>
</div>
<?php if(!is_empty(g_sc('browser_is_old'))): ?>
	<div class="alert alert-danger alert-dismissible fade in" role="alert" style="position:fixed;top:0;z-index:9999;width:100%;padding-top:5px;padding-bottom:5px;border-top-left-radius:0;border-top-right-radius:0;">
    	<button type="button" class="close" data-dismiss="alert" aria-label="Close"><span aria-hidden="true">×</span></button>
      	您的浏览器版本过低，不能完全展现页面效果，请使用谷歌、火狐或IE10及以上版本的浏览器！
    </div>
<?php endif; if(is_empty(g_sc_c('site','closetrans'))): ?>
<script type="text/javascript">
'use strict';//严格模式
page_translator("/public","<?php echo addslashes($_SERVER['HTTP_ACCEPT_LANGUAGE']); ?>");
</script>
<?php endif; ?>
<footer class="footer-end">
	<p>Powered by <a href="https://www.skycaiji.com" target="_blank">蓝天采集器</a></p>
</footer>
</body>
</html>